﻿@extends('admin.common.list')
@section('content')
	<section class="Hui-article-box">
		<nav class="breadcrumb"><i class="Hui-iconfont"></i> <a href="/" class="maincolor">首页</a> 
			<span class="c-999 en">&gt;</span>
			<span class="c-666">我的桌面</span> 
			<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
		<div class="Hui-article">
			<article class="cl pd-20">
				<div class="login-info-box">
					<div class="login-info-box1">
						<p class="f-20 text-success">欢迎回来
							<span class="f-14">{{$sessionData['admin']['account']}}</span>!
						</p>
						<p>登录次数：{{$sessionData['admin']['login_count']}} </p>
						<p>上次登录IP：{{$sessionData['admin']['ip']}} 上次登录时间：{{$sessionData['admin']['login_time']}}</p>
					</div>
				</div>
				<table class="table table-border table-bordered table-bg">
					<thead>
						<tr>
							<th colspan="7" scope="col">信息统计</th>
						</tr>
						<tr class="text-c">
							<th>时间</th>
							<th>文章数</th>
							<th>回复数</th>
						</tr>
					</thead>
					<tbody>
						@foreach($countInfo as $k=>$v)
						<tr class="text-c">
							<td>{{$k}}</td>
							<td>{{$v['article_count']}}</td>
							<td>{{$v['replies_count']}}</td>
						</tr>
						@endforeach
					</tbody>
				</table>
				<table class="table table-border table-bordered table-bg mt-20">
					<thead>
						<tr>
							<th colspan="2" scope="col">服务器信息</th>
						</tr>
					</thead>
					<tbody>
						@foreach($appInfo as $k=>$v)
						<tr>
							<th width="45%">{{$k}}</th>
							<td>{{$v}}</td>
						</tr>
						@endforeach
					</tbody>
				</table>
			</article>
			<footer class="footer">
			</footer>
		</div>
	</section>
@endsection
